Component({
    // 定义组件内部数据
    data:{
        name:'custom-component',


    },
    // 自定组件内部方法
    methods:{

    },
    changeIndicatorDots() {
        this.setData({
            indicatorDots: !this.data.indicatorDots,
        });
    },
    changeAutoplay() {
        this.setData({
            autoplay: !this.data.autoplay,
        });
    },
    changeCircular() {
        this.setData({
            circular: !this.data.circular,
        });
    },
    changeVertical() {
        this.setData({
            vertical: !this.data.vertical,
        });
    },
    changeDisableTouch() {
        this.setData({
            disableTouch: !this.data.disableTouch,
        });
    },
    intervalChange(e) {
        this.setData({
            interval: e.detail.value,
        });
    },
    durationChange(e) {
        this.setData({
            duration: e.detail.value,
        });
    },
    previousmarginChange(e) {
        this.setData({
            previousmargin: e.detail.value + "px",
            previousmargindata: e.detail.value,
        });
    },
    nextmarginChange(e) {
        this.setData({
            nextmargin: e.detail.value + "rpx",
            nextmargindata: e.detail.value,
        });
    },
    displaymultipleitemsChange(e) {
        this.setData({
            displaymultipleitems: e.detail.value,
        });
    },
    setDefault() {
        this.setData({
            easingfunction: "default",
        });
    },
    setLinear() {
        this.setData({
            easingfunction: "linear",
        });
    },
    setEaseInCubic() {
        this.setData({
            easingfunction: "easeInCubic",
        });
    },
    setEaseOutCubic() {
        this.setData({
            easingfunction: "easeOutCubic",
        });
    },
    setEaseInOutCubic() {
        this.setData({
            easingfunction: "easeInOutCubic",
        });
    },
    setCurrent() {
        this.setData({
            current: 1,
        });
    },
    changeCurrent(e) {
        // console.log('pkl---current',this.data.current,e.detail.current);
        this.setData({
            eventData: JSON.stringify(e.detail),

        });
    },
    bindtransition(e) {
        this.setData({
            transition: JSON.stringify(e.detail),
        });
    },
    bindanimationfinish(e) {
        this.setData({
            animationfinish: JSON.stringify(e.detail),
            current:e.detail.current
        });
    }
})